<template>
  <div class="home-container">
    <!-- 全屏背景图片 -->
    <div class="background-image"></div>

    <div class="page-content">
      <h1 class="welcome-title">欢迎使用宏烨网约车系统</h1>
      <p class="welcome-subtitle">便捷、安全、高效的出行解决方案</p>
      <div class="action-buttons">
        <button class="btn-primary">立即预约</button>
        <button class="btn-secondary">了解更多</button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
  data() {
    return {};
  },
  mounted() {
    // 可以在这里添加页面加载后的逻辑
  },
};
</script>

<style scoped>
.home-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 替换为你的图片路径 */
  background-image: url("../assets/images/wecome.png");
  /* 添加图片滤镜和过渡效果 */
  filter: brightness(0.75) contrast(1.1);
  transition: all 0.5s ease-in-out;
  transform: scale(1.02);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* 添加滤镜效果 */
  filter: brightness(0.7);
}

.page-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
}

.welcome-title {
  color: white;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
  animation: fadeInUp 1s ease-out;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary, .btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: #ff6b35;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  background-color: #e55a2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* 简单的动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>
